package top.blackr.folivora.common.security.crud.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.blackr.folivora.common.security.crud.model.entity.SysUser;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import java.util.Set;


@Data
@EqualsAndHashCode(callSuper = true)
public class SysUserVo extends SysUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 6949433933942753955L;

    @Schema(description = "角色id")
    private Integer roleId;
    @Schema(description = "角色名称")
    private String roleName;
    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "部门名称")
    private Integer deptId;
    @Schema(description = "部门名称")
    private String deptName;
    @Schema(description = "菜单id")
    private Long menuId;

    @Schema(description = "角色信息")
    private Set<SysRoleVo> roles;
    @Schema(description = "菜单信息")
    private List<SysMenuVo> menus;
    @Schema(description = "菜单id集合")
    private Set<Long> menuIds;

    @Schema(description = "微信sessionKey")
    private String sessionKey;
}
